package com.crypto.ui.action;

import com.crypto.oauth.CryptoOAuthClient;

public class GetContactsAction implements Action {

	private static final long serialVersionUID = 1L;
	
	private CryptoOAuthClient client = new CryptoOAuthClient();
	private String authorizationCode;

	public GetContactsAction(String authorizationCode) {
		this.authorizationCode = authorizationCode;
	}
	
	@Override
	public String execute() throws Exception {
		return "<br /><br />" + client.getAccessToken(authorizationCode);
	}

}
